import hljs from "highlight.js";

/**
 * @description:
 * @Author: huangpeng
 * @Date: 2023年08月11日 21:01
 * @Copyright:  2022-2023
 */
export default {
  bind(el, binding, vnode, oldVnode) {
    const blocks = el.querySelectorAll('pre code')
    blocks.forEach((block) => {
      hljs.highlightBlock(block)
    })
  }
};
